package JSPBasicGrammar.javaBeanScience03.javaBeanClass;

import java.io.Serializable;

@SuppressWarnings("all")
public class Logic implements Serializable {
	String Email = "";

	public Logic(String email) {
		this.Email = email;
	}

	public String getEmail() {
		return Email;
	}

	public void setEmail(String email) {
		Email = email;
	}

	public boolean isEmail() {
		String regex = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
		if (Email.matches(regex)) {
			return true;
		}
		return false;
	}

}

